package com.momo.hotel.dao.mapping.ext;

import com.momo.hotel.dao.pojo.TbComment;
import com.momo.hotel.dao.pojo.TbEvaluation;
import com.momo.hotel.dao.pojo.ext.TbEvaluationExt;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface TbEvaluationMapperExt extends Mapper<TbEvaluation> {
    /**
     * 添加评论
     * @param tbEvaluation
     * @return
     */
    Integer addEvaluation(TbEvaluation tbEvaluation);

    /**
     * 获取评价
     * @param roomId
     * @return
     */
    List<TbEvaluationExt> selectEvaluationById(Integer roomId);
}
